package day15.atm;

import javax.swing.*;
import java.awt.*;

/**
 * 查询界面
 */
public class SearchPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("images/buttonOff.jpg");

    private JLabel saveLabel = new JLabel("余额为：");
    private Font font = new Font("黑体",Font.BOLD,30);
    private JButton saveButton = new JButton(saveImg);

    public SearchPanel(){
        this.setLayout(null);
        saveLabel.setBounds(300,200,180,50);
        saveButton.setBounds(884,600,140,50);
        saveLabel.setFont(font);
        this.add(saveLabel);
        this.add(saveButton);
        this.setOpaque(false);
    }
}
